package ZiJieStream.FileOutStream.bytewrite;

import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Arrays;

public class Test2 {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos = new FileOutputStream("day24\\a.txt", true);
        String src = "helloworld";
        String s = "666";
        String wrap = "\r\n";

        byte[] byte2 = wrap.getBytes();
        byte[] byte1 = src.getBytes();
        byte[] bytes = s.getBytes();

        System.out.println(Arrays.toString(byte1));
        fos.write(byte1);
        fos.write(byte2);
        fos.write(bytes);
        fos.close();

    }
}
